%{
/* initial stuff here */

typedef union {
	int i;
	double r;
} yystype;

#define YYSTYPE yystype

%}

%token FOO
%type <i> script slash

%%
  script : /* EMPTY */
			{$$ = 0;}
	| script '?' slash FOO
			{$$ = $1 + $3;}
	| script 'a' 'b'
			{$$ = 1000;}
	;
slash : '/'
			{$$ = 1;}
	;
%%
/* trailing function declaration */
